home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
WINDOWS
/
PBBS190A.ARJ
/
POWRMAIN.EXE
/
SOURCE.DOC
< prev
next >
Wrap
Text File
|
1991-06-22
|
8KB
|
185 lines
FILE STRUCTURES
────────────────────────────────────────────────────────────
Type datetype = record
Date: Packed Array[1..8] Of Char;
End;
Type timetype = record
Time: Packed Array[1..5] Of Char;
End;
Type Forum_Type = Record
Options: Byte; {Forum Options:
Bit0: Access No/Yes
Bit1: Scan No/Yes}
Lastread: Single; {Last message read pointer}
End;
Type PowrUser = Record {Format of the USER database}
Name: Packed Array[1..25] Of Char; {User Name}
Location: Packed Array[1..20] Of Char; {User Location}
Computer: Packed Array[1..15] Of Char; {User Computer Type}
Phone_Number: Packed Array[1..14] Of Char; {User Phone Number}
Password: Packed Array[1..10] Of Char; {User Password}
Birthday: DateType; {date of birth}
First_Call: DateType; {date of first logon}
Last_File_Scan: DateType; {date of last NEW scan}
Expiration_Date: DateType; {date subscription ends}
Last_Call: DateType; {date of last logoff}
Last_Time: TimeType; {time of last logoff}
Calls: Integer; {total number of calls}
Uploads: Integer; {number of uploads}
Downloads: Integer; {number of downloads}
Time_on: Integer; {time on today}
Today_bytes: Double; {bytes downloaded today}
Download_Bytes: Double; {bytes downloaded}
Uploads_Bytes: Double; {bytes uploaded}
Forum_Data: Array[0..200] Of Forum_Type;
Access: Byte; {access level}
Expiration_Access: Byte; {access after expiration
date}
Screen_lines: Byte; {number of lines to a screen}
Safe_Total: Byte; {total minutes in safe}
Options: Byte; {options:
bit0: Expert On/Off
bit1: Hotkey On/Off
bit2: Bad User On/Off}
Xproto: Byte; {default file xfer protocol}
Monitor_Type: Char; {type of monitor:
'C' => Color
'M' => Monochrome
'N' => None}
Messages_Left: Word; {Number of messages left}
Reserved: Array[1..200] of byte;
End;
Type Powr_CallInfo = Record {Format of Callers Info File For Live Programs}
Name: Packed Array[1..25] Of Char; {User Name}
User_Pointer: Integer; {User Record # starting at 1}
BaudRate: Packed Array[1..5] Of Char; {Baud rate to send at}
Scomport: Char; {Com Number to send at}
What_Menu: byte; {Current Menu}
Graphics: Char; {Graphics Type:
'C' => Color
'M' => Monochrome
'N' => None}
Access: Byte; {User Access Level}
ForumNum: Byte; {Current Forum Number}
Logon_Time: TimeType; {time of logon}
Logon_Mins: Integer; {time the user logged on in mins}
Used_today: integer; {time the user used in
previous calls so far today}
Time_Limit: integer; {Maximum mins permitted on bbs}
Kdownload_Maximum: Integer; {Maximum download bytes in K}
Upload_Credit: Integer; {Minutes given for Uploading}
Minutes_Useable: Integer; {Maximum Time left for caller}
Node_Num: Byte; {The node number of this callinfo file}
Path_Data: string[30]; {path to powrwin.dat}
Reserved1: Array[1..2] Of Char;
Reserved2: Byte;
Reserved3: Longint;
End;
Message Base File Definitions
-----------------------------
Type IndexFile = Record {Format of INDEX file}
bottom_message: Single; {First message still active}
Last_message: Single; {Last message still active}
messages: Single; {Number of message in forum}
Updating: Boolean; {Set to True when Updating}
End;
* Note: The following is the Message Set up. In the BBS world, there
has been a growing motion to a standardized message base. Many
doors and nets have been written to utilize the PCBoard (R)
message base random access file. We have utilized this
form:
Type MessageText = Record {Format of Forum Actual Messages}
case header: integer of
1: (Options: Byte; {1- private no read, 2- public no read
3- private read, 4- public read}
Message_Id: Single; {Identification Number}
Replied_To: Single; {Id Number the message replied to}
Text_Blocks: Byte; {Number of 128 Byte Text Blocks}
Sent_Date: DateType; {Date the message was written}
Sent_Time: TimeType; {Time the message was written}
Sent_To: Packed Array[1..25] Of Char;
{Name of user the message was entered to}
Received_Date:DateType; {Date the message was received}
Received_Time:TimeType; {Time the message was received}
Any_Replys: Char; {Has it been replied to?}
User_From: Packed Array[1..25] Of Char;
{Name of user who entered the message}
Topic: Packed Array[1..30] Of Char; {Topic of message}
Security: Packed Array[1..12] Of Char; {Password needed}
Is_Active: char; {Is message alive?}
Echo: char; {Echo through network?}
Future_Use: Packed Array[1..6] Of Char; {Reserved for future});
2: (Text_data: Packed Array[1..128] of Char);
end;
ERROR MESSAGES
────────────────────────────────────────────────────────────
The file is a list of what the error codes stand for. This should help
give you an idea, if powerbbs stops execution because of an error.
DOS Errors
2 File not found
3 Path not found
4 Too many open files
5 File access denied
6 Invalid file handle
12 Invalid file access code
15 Invalid drive number
16 Cannot remove current directory
17 Cannot rename across drives
I/O Errors
100 Disk read error
101 Disk write error
102 File not assigned
103 File not open
104 File not open for input
105 File not open for output
106 Invalid numeric format
Critical Errors
150 Disk is write-protected
151 Unknown unit
152 Drive not ready
153 Unknown command
154 CRC error in data
155 Bad drive request structure length
156 Disk seek error
157 Unknown media type
158 Sector not found
159 Printer out of paper
160 Device write fault
161 Device read fault
162 Hardware (or Network) failure
Fatal Errors
200 Division by zero
201 Range check error
202 Stack overflow error
203 Heap overflow error
204 Invalid pointer operation
205 Floating point overflow
206 Floating point underflow
207 Invalid floating-point operation
208 Overlay manager not installed
209 Overlay file read error